package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {

    private ObjectId id; //主键id
    private Integer vid; //vid自增
    private Long userId;//用户id
    private String gender;//性别
    private Integer age;//年龄
    private String soundUrl; //音频文件，URL
    private Long created; //创建时间

    private Integer state = 0;//是否被使用，0为否，1为被使用
}
